package com.diver.flinkdemo.entity.xxt;


import java.util.HashSet;
import java.util.Set;

/**
 * 2018/08/30
 * Created by Wen Jun.
 */
public class Admin implements java.io.Serializable {

    // 序列化版本
    private static final long serialVersionUID = -9017425500330247168L;

    //  [主键]
    private String id;
    // 用户名
    private String userName;
    // 密码
    private String password;
    // 所属渠道
    private String channelId;
    // 类型
    private Integer type;
    // 所属角色
    private String roleId;
    // 创建者
    private String createPersionId;
    // 创建时间
    private Long createTime;
    // 更新者
    private String updatePersionId;
    // 更新时间
    private Long updateTime;
    // 删除者
    private String deletePersionId;
    // 删除标识0：未删除，1：已删除
    private Integer deleteFlag;
    // 删除时间
    private Long deleteTime;

    private String channel;

    private String role;

    private Long tokenExpireTime = -1l;

    private String clazzId;
    private String clazzName;
    private String gradeId;
    private String gradeName;

    //yangs 拥有请求url集合
    private Set<String> urlSet = new HashSet<>();

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    /**
     * 获取 [主键]
     *
     * @return
     */
    public String getId() {
        return id;
    }

    /**
     * 设置 [主键]
     *
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取用户名
     *
     * @return 用户名
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置用户名
     *
     * @param userName 用户名
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取密码
     *
     * @return 密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置密码
     *
     * @param password 密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取所属渠道
     *
     * @return 所属渠道
     */
    public String getChannelId() {
        return channelId;
    }

    /**
     * 设置所属渠道
     *
     * @param channelId 所属渠道
     */
    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    /**
     * 获取类型
     *
     * @return 类型
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置类型
     *
     * @param type 类型
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 获取所属角色
     *
     * @return 所属角色
     */
    public String getRoleId() {
        return roleId;
    }

    /**
     * 设置所属角色
     *
     * @param roleId 所属角色
     */
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取创建者
     *
     * @return 创建者
     */
    public String getCreatePersionId() {
        return createPersionId;
    }

    /**
     * 设置创建者
     *
     * @param createPersionId 创建者
     */
    public void setCreatePersionId(String createPersionId) {
        this.createPersionId = createPersionId;
    }

    /**
     * 获取创建时间
     *
     * @return 创建时间
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新者
     *
     * @return 更新者
     */
    public String getUpdatePersionId() {
        return updatePersionId;
    }

    /**
     * 设置更新者
     *
     * @param updatePersionId 更新者
     */
    public void setUpdatePersionId(String updatePersionId) {
        this.updatePersionId = updatePersionId;
    }

    /**
     * 获取更新时间
     *
     * @return 更新时间
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取删除者
     *
     * @return 删除者
     */
    public String getDeletePersionId() {
        return deletePersionId;
    }

    /**
     * 设置删除者
     *
     * @param deletePersionId 删除者
     */
    public void setDeletePersionId(String deletePersionId) {
        this.deletePersionId = deletePersionId;
    }

    /**
     * 获取删除标识0：未删除，1：已删除
     *
     * @return 删除标识0：未删除，1：已删除
     */
    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    /**
     * 设置删除标识0：未删除，1：已删除
     *
     * @param deleteFlag 删除标识0：未删除，1：已删除
     */
    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    /**
     * 获取删除时间
     *
     * @return 删除时间
     */
    public Long getDeleteTime() {
        return deleteTime;
    }

    /**
     * 设置删除时间
     *
     * @param deleteTime 删除时间
     */
    public void setDeleteTime(Long deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Long getTokenExpireTime() {
        return tokenExpireTime;
    }

    public void setTokenExpireTime(Long tokenExpireTime) {
        this.tokenExpireTime = tokenExpireTime;
    }

    public Set<String> getUrlSet() {
        return urlSet;
    }

    public void setUrlSet(Set<String> urlSet) {
        this.urlSet = urlSet;
    }

    public String getClazzId() {
        return clazzId;
    }

    public void setClazzId(String clazzId) {
        this.clazzId = clazzId;
    }

    public String getClazzName() {
        return clazzName;
    }

    public void setClazzName(String clazzName) {
        this.clazzName = clazzName;
    }

    public String getGradeId() {
        return gradeId;
    }

    public void setGradeId(String gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id='" + id + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", channelId='" + channelId + '\'' +
                ", type=" + type +
                ", roleId='" + roleId + '\'' +
                ", createPersionId='" + createPersionId + '\'' +
                ", createTime=" + createTime +
                ", updatePersionId='" + updatePersionId + '\'' +
                ", updateTime=" + updateTime +
                ", deletePersionId='" + deletePersionId + '\'' +
                ", deleteFlag=" + deleteFlag +
                ", deleteTime=" + deleteTime +
                ", channel='" + channel + '\'' +
                ", role='" + role + '\'' +
                ", tokenExpireTime=" + tokenExpireTime +
                ", clazzId='" + clazzId + '\'' +
                ", clazzName='" + clazzName + '\'' +
                ", gradeId='" + gradeId + '\'' +
                ", gradeName='" + gradeName + '\'' +
                ", urlSet=" + urlSet +
                '}';
    }
}
